Don't recurse so often in the dependency graph
authorAlex Crichton <alex@alexcrichton.com>
Fri, 29 May 2015 20:35:29 +0000 (13:35 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 3 Jun 2015 01:05:47 +0000 (18:05 -0700)
commit450e81d80056530edd6cfabbdd9e923137680c67
tree5363a867e59fbf92fda81fe3d601b7bcce14472b
parent77622892697e5ff8b978b1496d51416c7bfafee2
Don't recurse so often in the dependency graph

Prior to this commit the entire dependency tree would be traversed many, many
times as the short circuits weren't applying fast enough. This commit modifies
the recursion to only happen if the target in question was actually compiled.

This commit saw a noop build time for Servo drop from 4.5s to 2.5s.
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/ops/cargo_rustc/mod.rs